<?php
/**
 * Created by PhpStorm.
 * User: ming
 * Date: 17-8-17
 * Time: 上午9:45
 */
function doProcess(swoole_process $worker){
    echo  "PID",$worker->pid,"\n";
    sleep(10);
}

$process=new swoole_process("doProcess");
$pid=$process->start();
$process=new swoole_process("doProcess");
$pid=$process->start();
$process=new swoole_process("doProcess");
$pid=$process->start();

swoole_process::wait();

